<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center myNews_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub myNews_fd0_0'>
					<view class='flex flex-wrap align-center myNews_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  myNews_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='myNews_fd0_0_c1'>我的消息</text>
					<view class='flex flex-wrap align-center myNews_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myNews_flex_1">
				<view class='flex flex-wrap align-center myNews_fd1_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/my/APPMessageOne/APPMessageOne`">
					<view class='flex flex-wrap align-center myNews_fd1_0_c0'>
						<image class='myNews_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"106.png"'></image>
						<benben-message-num class='myNews_fd1_0_c0_c1' :message-num="newData.notice_num" size='24'
							color='#fff' background-color='red'>
						</benben-message-num>
					</view>
					<view class='flex flex-direction flex-wrap align-stretch justify-between flex-sub'>
						<view class='flex flex-wrap align-center myNews_fd1_0_c1_c0'>
							<text class='flex-sub myNews_fd1_0_c1_c0_c0'>平台公告</text>
							<text class='myNews_fd1_0_c1_c0_c1'>{{newData.notice_time}}</text>
						</view>
						<text class='myNews_fd1_0_c1_c1'
							v-if=" newData.notice_title!=''">{{newData.notice_title}}</text><text
							class='myNews_fd1_0_c1_c1' v-if=" newData.notice_title==''">暂无消息</text>
					</view>
				</view>
				<view class='flex flex-wrap align-center myNews_fd1_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/my/orderMessageOne/orderMessageOne`">
					<view class='flex flex-wrap align-center myNews_fd1_0_c0'>
						<image class='myNews_fd1_0_c0_c0' mode="aspectFit" :src='STATIC_URL+"107.png"'></image>
						<benben-message-num class='myNews_fd1_0_c0_c1' :message-num="newData.service_num" size='24'
							color='#fff' background-color='red'>
						</benben-message-num>
					</view>
					<view class='flex flex-direction flex-wrap align-stretch justify-between flex-sub'>
						<view class='flex flex-wrap align-center myNews_fd1_0_c1_c0'>
							<text class='flex-sub myNews_fd1_0_c1_c0_c0'>订单消息</text>
							<text class='myNews_fd1_0_c1_c0_c1'>{{newData.service_time}}</text>
						</view>
						<text class='myNews_fd1_0_c1_c1'
							v-if=" newData.service_title!=''">{{newData.service_title}}</text><text
							class='myNews_fd1_0_c1_c1' v-if=" newData.service_title==''">暂无消息</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"shopID": uni.getStorageSync('shopID') || '',
				"newData": {
					"notice_title": "",
					"notice_num": "",
					"service_title": "",
					"service_num": "",
					"goods_title": "",
					"goods_num": "",
					"notice_time": "",
					"service_time": "",
					"goods_time": ""
				}
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.getNewDataFunc()
			this.shopID = uni.getStorageSync('shopID') || ''
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取消息信息
			async getNewDataFunc() {
				//请求方法
				//数据验证

				let datanewData = await this.$api.get(global.apiUrls.post65fe3edfd30e9, {

				});

				if (datanewData.data.code != 1) {
					this.$message.info(datanewData.data.msg);
					return
				}
				let infonewData = datanewData.data;
				this.newData = infonewData.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenbgColor1);
		background-size: 100% auto;
	}

	.myNews_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.myNews_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 50rpx;
	}

	.myNews_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.myNews_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.myNews_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.myNews_flex_1 {
		background: #fff;
		padding: 0rpx 32rpx 0rpx 32rpx;
		background-size: 100% auto !important;
	}

	.myNews_fd1_0_c1_c1 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.myNews_fd1_0_c1_c0_c1 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
		margin: 0rpx 0rpx 0rpx 24rpx;
	}

	.myNews_fd1_0_c1_c0_c0 {
		line-height: 40rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.myNews_fd1_0_c1_c0 {
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.myNews_fd1_0_c0_c1 {
		position: absolute;
		top: -4rpx;
		right: -4rpx;
	}

	.myNews_fd1_0_c0_c0 {
		width: 90rpx;
		height: 90rpx;
	}

	.myNews_fd1_0_c0 {
		margin: 0rpx 24rpx 0rpx 0rpx;
		position: relative;
	}

	.myNews_fd1_0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}
</style>